﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace SimulationCenter.Tasks
{
    /// <summary>
    /// 设备子任务
    /// </summary>
    [Table("ScDeviceTask")]
    public class ScDeviceTask
    {
        /// <summary>
        /// 子任务编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 总任务编号
        /// </summary>
        public int ScTaskId { get; set; }

        /// <summary>
        /// 设备号
        /// </summary>
        public string Serial { get; set; }

        /// <summary>
        /// 公众号
        /// </summary>
        public string Subscription { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public ScTaskStatus Status { get; set; }

        /// <summary>
        /// 启动时间
        /// </summary>
        public DateTime? StartAt { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndAt { get; set; }
    }
}
